<?php
	class Family{
		var $type;
		var $name;
		var $firstname;
		var $communication = Array();
		
		public function addCommunication($comm){
			array_push($this->communication, $comm);
		}
		
		public function toString() {
			echo " --> " . $this->type . " - " . $this->name . " - " . $this->firstname ."<br/>";
			echo " ----> communication <br/> ";
			foreach($this->communication as $com){
				$com->toString();
			}
		}
	}
?>